<div class="row justify-content-center">
    <div class="col-8">
        <div *ngIf="order">
            <h2><span>Order</span> {{ order.id }}</h2>

            <hr>

            <jhi-alert-error></jhi-alert-error>

            <dl class="row-md jh-entity-details">
                <dt><span>Order Code</span></dt>
                <dd>
                    <span>{{ order.orderCode }}</span>
                </dd>
                <dt><span>Order Time</span></dt>
                <dd>
                    <span>{{ order.orderTime }}</span>
                </dd>
                <dt><span>Cancel Time</span></dt>
                <dd>
                    <span>{{ order.cancelTime }}</span>
                </dd>
                <dt><span>Deal Time</span></dt>
                <dd>
                    <span>{{ order.dealTime }}</span>
                </dd>
                <dt><span>Send Time</span></dt>
                <dd>
                    <span>{{ order.sendTime }}</span>
                </dd>
                <dt><span>Margin Time</span></dt>
                <dd>
                    <span>{{ order.marginTime }}</span>
                </dd>
                <dt><span>Pay Time</span></dt>
                <dd>
                    <span>{{ order.payTime }}</span>
                </dd>
                <dt><span>Checked Time</span></dt>
                <dd>
                    <span>{{ order.checkedTime }}</span>
                </dd>
                <dt><span>User Id</span></dt>
                <dd>
                    <span>{{ order.userId }}</span>
                </dd>
                <dt><span>Item Type Id</span></dt>
                <dd>
                    <span>{{ order.itemTypeId }}</span>
                </dd>
                <dt><span>Item Id</span></dt>
                <dd>
                    <span>{{ order.itemId }}</span>
                </dd>
                <dt><span>Order Price</span></dt>
                <dd>
                    <span>{{ order.orderPrice }}</span>
                </dd>
                <dt><span>Deal Price</span></dt>
                <dd>
                    <span>{{ order.dealPrice }}</span>
                </dd>
                <dt><span>Is Lock Price</span></dt>
                <dd>
                    <span>{{ order.isLockPrice }}</span>
                </dd>
                <dt><span>States</span></dt>
                <dd>
                    <span>{{ order.states }}</span>
                </dd>
                <dt><span>Estimates Qty</span></dt>
                <dd>
                    <span>{{ order.estimatesQty }}</span>
                </dd>
                <dt><span>Deal Qty</span></dt>
                <dd>
                    <span>{{ order.dealQty }}</span>
                </dd>
            </dl>

            <button type="submit"
                    (click)="previousState()"
                    class="btn btn-info">
                <fa-icon icon="arrow-left"></fa-icon>&nbsp;<span>Back</span>
            </button>

            <button type="button"
                    [routerLink]="['/order', order.id, 'edit']"
                    class="btn btn-primary">
                <fa-icon icon="pencil-alt"></fa-icon>&nbsp;<span>Edit</span>
            </button>
        </div>
    </div>
</div>
